package com.jin.stu.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("leaves")
@ToString
public class Leave implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer sid;
    private String studentname;
    private String grade;
    private String classes;
    private String phone;
    private String reason;
    @JsonIgnore
    @TableField(exist = false)
    private String rawstartdate; //字符型开始时间
    @JsonIgnore
    @TableField(exist = false)
    private String rawenddate; //字符型结束时间
    private Date startdate;
    private Date enddate;
    private Date createtime;
    private Integer status; //0：待审批，1：请假失败，2：未销假，3：已销假
    private String refusereason;
    private Integer mgr;//学生对应的班主任
    private Integer deptid;//学生对应的班主任

}
